<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmMedicineDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcm_medicine_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable();
            $table->string('picture')->nullable();
            $table->string('shareImg')->nullable();
            $table->text('recipe')->nullable();
            $table->text('manufacture')->nullable();
            $table->text('characters')->nullable();
            $table->text('indications')->nullable();
            $table->text('usages')->nullable();
            $table->text('cautions')->nullable();
            $table->text('specification')->nullable();
            $table->string('storage')->nullable();
            $table->string('effects')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcm_medicine_detail');
    }
}
